import { ITravelStrategy } from "./Interface";
export default class Context {
    private strateg: ITravelStrategy;

    constructor(strateg: ITravelStrategy) {
        this.strateg = strateg;
    }


    setStrateg(strateg: ITravelStrategy) {
        this.strateg = strateg
    }


    goToAirport(distance: number): number {
        return this.strateg.calcFee(distance)
    }
}